import Crud from "cl-admin-crud";
// version 1.0.0
// import Theme from "cl-admin-theme";

export default {
	modules: [
		"base",
		"task",
		{
			name: "upload",
			options: {
				icon: "el-icon-picture",
				text: "选择图片",
				limitSize: 1,
				rename: true
			}
		},
		{
			name: "crud",
			value: Crud,
			options: {
				crud: {
					dict: {
						sort: {
							prop: "order",
							order: "sort"
						}
					},
					table: {
						// 'context-menu': false
						indexMethod: (index, crud) => {
							return index + 1 + (crud.params.page - 1) * crud.params.size
						}
					},
					style: {
						refreshBtn: {},
						addBtn: {},
						multiDeleteBtn: {},
						advBtn: {},
						editBtn: {
							type: "primary"
						},
						deleteBtn: {
							type: "danger"
						},
						saveBtn: {
							type: "primary"
						},
						closeBtn: {
							// type: ""
						},
						table: {
							size: "small",
							stripe: true
						},
						tableOp: {
							// width: "200px"
						},
						filterSearchBtn: {
							icon: "el-icon-search"
						}
					}
				}
			}
		},
		"chat",
		"copy",
		"distpicker",
		"customer",
		"brand",
		"single",
		"course",
		"admin",
		"demo",
		"mobile",
		"ad",
		"oa",
		"advice",
		'shop'
		// {
		// 	name: "theme",
		// 	value: Theme
		// }
	]
};
